package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;


import java.util.Set;

public interface PermissionDao {
   public Set<Permission> findByRoleId(Integer roleId);
   //分页查询
   public  Page<Permission> selectByCondition(String  queryString);
   //添加权限
    public   void   add(Permission  permission);
  //根据id删除权限
    public   void  deleteById(Integer  id);
    //编辑回显-根据id查询权限
    public  Permission  findById(Integer  id);
    //编辑
    public  void  edit(Permission  permission);
}
